package org.orqlog.Utils;

public class IpUtil {

    private static final ThreadLocal<String> ipCache = new ThreadLocal<String>();

    public static String getIp() {
        return ipCache.get();
    }

    public static void setIp(String ip) {
        ipCache.set(ip);
    }

    public static void clear() {
        ipCache.remove();
    }
}
